FROM openjdk:8-jre

EXPOSE 16666

ARG JAR_FILE
ADD ./target/${JAR_FILE} /home/app.jar
ADD ./target/classes/application.yml /home/application.yml

ENTRYPOINT ["sh", "-c", "java -jar ${JAVA_OPTS} -Duser.timezone=Asia/Shanghai /home/app.jar"]